package backend.majiong.yaku.yaku;

import backend.MainGame;
import backend.majiong.Player;
import backend.majiong.yaku.AbstractYaku;
import backend.majiong.yaku.HandCombo;

public class Toitoi extends AbstractYaku {

    @Override
    public boolean checkYaku(Player player, HandCombo combo, MainGame mainGame) {
        if (combo.getSunZi().size() > 0) {
            return false;
        }
        if (combo.getSpecialYakuFlag().isQiDuiZi()) {
            return false;
        }
        return true;
    }

    @Override
    public String getYakuName() {
        return "对对和";
    }

    @Override
    public Integer getYakuNum(boolean isMenQing) {
        return 2;
    }

}
